﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSLMS.Services.Interface;
using GSLMS.Entity;
using GSLMS.Entity.DTO;
using GSLMS.DAL;
namespace GSLMS.Services
{
	/// <summary>
	/// 此层为服务层，已经继承了父类BaseService,已经定义好方法请查看BaseService类；若需要自定义方法请在此层增加并在数据层及接口层定义相关的方法
	/// </summary>
	public partial class SADU_CONARR: BaseService<TB_ADU_CONARR>, IADU_CONARR
	{
		private static readonly GSLMS.DAL.Oracle.ADU_CONARR dal = new GSLMS.DAL.Oracle.ADU_CONARR();
		public override BaseDAL<TB_ADU_CONARR> DAL
		{
			get { return dal; }
		}
        /// <summary>
        /// 分页提取数据
        /// </summary>
        public List<GSLMS.Entity.TB_ADU_CONARR> GetConAduList(GSLMS.Entity.TB_ADU_CONARR searchParam)
        {
            return dal.GetConAduList(searchParam);
        }

         /// <summary>
        /// 分页提取数据
        /// </summary>
        public List<GSLMS.Entity.TB_ADU_CONARR> GetConSumList(GSLMS.Entity.TB_ADU_CONARR searchParam)
        {
            return dal.GetConSumList(searchParam);
        }

        /// <summary>
        /// 审议安排退回
        /// </summary>
        /// <param name="id">安排记录ID</param>
        /// <param name="actionBy">操作人</param>
        /// <param name="backReason">退回原因</param>
        /// <param name="backtoFlow">退回到流程</param>
        /// <returns></returns>
        public int BackTo(long id, string actionBy, string backReason, int backtoFlow)
        {
            return dal.BackTo(id, actionBy, backReason, backtoFlow);
        }
	}
}
